<@override name="content">
<div class="cxboard">
	<a href="notice"><h3 class="title">Notice公告</h3></a>
	<ul class="entry">
		<#if noticeList?? & (noticeList.list.size()>0) > 
		<#list noticeList.list as notice> 
		<li>
		<a href="notice/show/${notice.id!}">${notice.title!}</a>
		</li> 
		<#if (notice_index > 3)><#break></#if>
		</#list> 
		</#if>
	</ul>

	<a href="contest"><h3 class="title">Contest比賽預告</h3></a>
	<ul class="entry">
		<#if contestList?? & (contestList.list.size()>0) > 
		<#list contestList.list as Contest> 
		<li>
		<a href="contest/show/${Contest.cid!}">${Contest.title!}-- ${Contest.startDateTime!}</a>
		</li> 
		<#if (Contest_index > 3)><#break></#if>
		</#list> 
		</#if>
	</ul>

</div>

<#if newsList?? & (newsList.list.size() > 0) >
<div class="flexslider">
	<ul class="slides">
		<#list newsList.list as news>
		<li>
			<div class="titlepimg">${news.title!}</div> <img src="${news.image}" />
		</li> </#list>
	</ul>
</div>
</#if> 

<#if newsList?? & (newsList.list.size() > 0) > 
<#list newsList.list as news>
<div class="news">
	<a href="news/show/${news.id}"><h3 class="title">${news.title!}</h3></a>
	<p style="text-align: right;position:relative;top:-10px">
		On <span class="timestamp" data="${news.time!}"></span> By <span
			class="author">${news.author!}</span>
	</p>
	<p class="entry">${news.content?substring(0,34)}...</p>
</div>
</#list>

<div class="pagination pagination-centered" style="position:relative;top:50px;float:left;left:32%">
	<#include "../common/_paginate.html" /> 
	<@paginate currentPage=newsList.pageNumber totalPage=newsList.totalPage actionUrl="news/" />
</div>
</#if> 



</@override> 
<@override name="scripts"> 
</@override> 
<@extends name="../common/_layout.html" />
